import request from '@/utils/request'

// 查询库存信息列表
export function listInv0002(query) {
  return request({
    url: '/inv/inv0002/list',
    method: 'get',
    params: query
  })
}

// 查询库存信息详细
export function getInv0002(id) {
  return request({
    url: '/inv/inv0002/' + id,
    method: 'get'
  })
}

// 新增库存信息
export function addInv0002(data) {
  return request({
    url: '/inv/inv0002',
    method: 'post',
    data: data
  })
}

// 修改库存信息
export function updateInv0002(data) {
  return request({
    url: '/inv/inv0002',
    method: 'put',
    data: data
  })
}

// 删除库存信息
export function delInv0002(id) {
  return request({
    url: '/inv/inv0002/' + id,
    method: 'delete'
  })
}


export function getViewData(data) {
  return request({
    url: '/inv/inv0002/getViewData',
    method: 'post',
    data: data
  })
}

export function locationChange(data) {
  return request({
    url: '/inv/inv0002/locationChange',
    method: 'post',
    data: data
  })
}

